package com.socialmediaanalytics.client;

import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.socialmediaanalytics.client.interests.ShowCommonInterests;

/** 
 * 
 * 
 * @UserInterface 
 */

public class MainPage extends HorizontalPanel {

	public static VerticalPanel leftPanel = new VerticalPanel();

	public static VerticalPanel mainPanel = new VerticalPanel();

	public MainPage() {

		RootPanel rootpanel = RootPanel.get();

		rootpanel.setSize("100%", "100%");

		HorizontalPanel hp = new HorizontalPanel();

		leftPanel.clear();

		leftPanel.setWidth("250px");

		leftPanel.add(new LeftPanel());

		hp.add(leftPanel);

		mainPanel.clear();

		mainPanel.setSize("100%", "100%");

		mainPanel.setWidth("450px");

		mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

		hp.add(mainPanel);

		mainPanel.add(new ShowCommonInterests());

		rootpanel.add(hp);
	}
}
